﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="goodsAdd01.aspx.cs" Inherits="WebSite.admin.product.goodsAdd01" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <link href="../css/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server" >
            <ext:PageManager ID="PageManager1" runat="server" />

       <ext:form ID="extForm1" runat="server"  BodyPadding="10px"  ShowBorder="false"  EnableBackgroundColor="true"  Title="" ShowHeader="false" >
                       <Rows>
                    <ext:FormRow>
                     <Items>
                    <ext:textbox ID="txtGoodsName"  Label="商品名称" Required="true"  Width="400px"  MaxLength="200"
                                                                ShowRedStar="true" runat="server" Text=""></ext:textbox>
                    </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                  <Items>
                    <ext:textbox ID="txtGoodsBatchNo"  Width="200px" Label="商品编号" Required="true" ShowRedStar="true" 
                                                                runat="server" Text=""></ext:textbox>
                       <ext:CheckBox id="isSale" runat="server" Label="是否上架"  Checked="true"></ext:CheckBox>
                    </Items>
                    </ext:FormRow>
                      
                       <ext:FormRow>
                    <Items>           
                      <ext:DropDownList ID="ddlGoodsType" runat="server" Label="商品类别" Width="200px" Required="true" ShowRedStar="true" CompareValue="-1" CompareOperator="NotEqual">
                   
                      </ext:DropDownList> 
                       <ext:CheckBox id="cbxIsRecom" runat="server" Label="是否推荐"  Checked="false"></ext:CheckBox>            
                    </Items>
                    </ext:FormRow>   
                         <ext:FormRow>
                    <Items>           
                      <ext:DropDownList ID="ddlGoodsBrand" runat="server" Label="商品品牌" Width="200px" ></ext:DropDownList>             
                      <ext:DropDownList ID="ddlTerms" runat="server" Label="气节类别" Width="200px" ></ext:DropDownList>     
                    </Items>
                    </ext:FormRow>   
                        <ext:FormRow>
                    <Items>           
                      <ext:DropDownList ID="ddlDeliveryTemplate" runat="server" Label="选择配送模板" Width="200px" Required="true" ShowRedStar="true" CompareValue="-1" CompareOperator="NotEqual" ></ext:DropDownList>             
                     
                    </Items>
                    </ext:FormRow>  
                    <ext:FormRow>
                    <Items>           
                        <ext:NumberBox id="txtOrder" runat="server" Label="排序" NoDecimal="true"  Width="100px" Required="true"  MaxValue="100000"   NoNegative="True"  ShowRedStar="true" MinValue="-100000"></ext:NumberBox>
                        <ext:NumberBox id="txtGoodsCount" runat="server" Label="库存数量" NoDecimal="true"  Width="100px" Required="true"  MaxValue="100000"   NoNegative="True"  ShowRedStar="true" MinValue="1"></ext:NumberBox>
                         <ext:NumberBox id="txtGoodsPrice" runat="server" Label="实际售价" NoDecimal="true" Width="100px" Required="true"  MaxValue="100000"   NoNegative="True"  ShowRedStar="true" MinValue="1"></ext:NumberBox>

                    </Items>
                    </ext:FormRow>  
                   <ext:FormRow ColumnWidths="30% 20% 50%">
                    <Items>
                          <ext:CheckBox id="cbxModelType" runat="server" Label="是否设置型号"  Checked="false"  AutoPostBack="true"
                              OnCheckedChanged="cbxModelType_CheckedChanged"></ext:CheckBox>     
                          <ext:Button ID="btnModelTypeEdit" EnablePostBack="false" Text="型号编辑" runat="server"> </ext:Button>
                        <ext:Label ID="lblModelTypeList" EncodeText="false"  runat="server"></ext:Label>
                    </Items>
                    </ext:FormRow >

                    <ext:FormRow>
                    <Items>
                     <ext:CheckBox id="cbxAllowAllCard" runat="server" Label="是否通用"  Checked="true"></ext:CheckBox>
                    <ext:NumberBox id="txtPoints" runat="server" Label="所需福点数" NoDecimal="true"  Width="100px" Required="false"  MaxValue="100000"   NoNegative="True"  ShowRedStar="true" MinValue="1"></ext:NumberBox>
                      
                    </Items>
                    </ext:FormRow>
                                  
                       <ext:FormRow>
                    <Items>
                          <ext:TextBox ID="txtDetailUrl" Label="商品详情页面"  runat="server" Text="" Width="400px"></ext:TextBox>
                    </Items>
                    </ext:FormRow>

                      <ext:FormRow>
                    <Items>
                       <ext:DropDownList ID="ddlCompanyList" Label="选择供货商" runat="server"></ext:DropDownList>
                    </Items>
                    </ext:FormRow>
                    <ext:FormRow >
               <Items>
                    <ext:FileUpload runat="server"   ID="fileGoodsPhoto"   EmptyText="" Label="商品缩列图（200*200）" Required="true" ShowRedStar="true">
                       </ext:FileUpload>                

                       <ext:Label ID="lblBigPic" runat="server"></ext:Label>


                    </Items>
                    </ext:FormRow>

                     <ext:FormRow>
                    <Items>
                     <ext:Label ID="lblSave" runat="server"></ext:Label>
                    </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                    <Items>
                    <ext:Button ID="btnSave01" ValidateForms="extForm1" runat="server" Text="保 存" OnClick="btnSave01_Click" ></ext:Button>
                   
                     
                    </Items>
                    </ext:FormRow>
                    </Rows>
                    </ext:form>


    <ext:Window ID="Window1" Title="弹出窗体" Popup="false" EnableIFrame="true" IFrameUrl="about:blank"
        Target="Parent" runat="server"   CloseAction="HidePostBack" IsModal="true" Width="600px"
        EnableConfirmOnClose="true"  OnClose="Window1_Close" Height="350px">
    </ext:Window>
    </form>
</body>
</html>
